package com.wbq501.wanandroid.data

import com.wbq501.net.entity.base.ApiPagerResponse
import com.wbq501.net.api.BaseUrls
import okhttp3.Response
import rxhttp.IAwait
import rxhttp.RxHttp
import rxhttp.toOkResponse
import rxhttp.toResponse

object UserRepository {


    /**
     * 获取列表信息
     */
    fun getList(pageIndex: Int): IAwait<ApiPagerResponse<Any>> {
        return RxHttp.get(BaseUrls.GET_MAIN_LIST, pageIndex).toResponse()
    }

}